package me.zixing.timer.core;

import java.io.File;
import java.net.URL;

/**
 * Created by bingh on 2017/10/21.
 */
public class ImageTimeElement {
    private URL fileUrl;
    private int x;
    private int y;
    private int width;
    private int height;

    public ImageTimeElement(URL fileUrl) {
        this.fileUrl = fileUrl;
    }

    public ImageTimeElement(URL fileUrl, int x, int y, int width, int height) {
        this.fileUrl = fileUrl;
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = height;

    }

    public URL getFileUrl() {
        return fileUrl;
    }

    public ImageTimeElement setFileUrl(URL fileUrl) {
        this.fileUrl = fileUrl;
        return this;
    }

    public int getX() {
        return x;
    }

    public ImageTimeElement setX(int x) {
        this.x = x;
        return this;
    }

    public int getY() {
        return y;
    }

    public ImageTimeElement setY(int y) {
        this.y = y;
        return this;
    }

    public int getWidth() {
        return width;
    }

    public ImageTimeElement setWidth(int width) {
        this.width = width;
        return this;
    }

    public int getHeight() {
        return height;
    }

    public ImageTimeElement setHeight(int height) {
        this.height = height;
        return this;
    }
}
